﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace YTBZ.PUB
{
    public partial class CHANGEPASS : BasePage 
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void lbtnPass_onClick(object sender, EventArgs e)
        {
            string strBack = getUserPasschange(txtUserPassOld.Text, txtUserPass.Text, txtUserPassP.Text);
            if (strBack == "")
            {
                
                if(Request.QueryString["flag"]== "login")
                {
                    string strjs = "<Script Language=\"javascript\">\n";
                    strjs += "alert(\"操作成功,下次登录请使用新密码！\")\n";
                    strjs += "location.href=\"../INDEX.ASPX\"\n";
                    strjs += "</Script>";
                    Response.Write(strjs);
                }
                else
                {
                    jsMessage("操作成功,下次登录请使用新密码！");
                }
            }
            else
            {
                jsMessage(strBack);
            }
        } 
    }
}